cmake_minimum_required(VERSION 2.8.3)
project(encoder_driver)

## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  rospy
  roscpp
  serial
  std_msgs
  nav_msgs
  std_msgs
  geometry_msgs
  tf
  dynamic_reconfigure
)


add_message_files(FILES Speed.msg)
generate_messages(DEPENDENCIES std_msgs)


catkin_package(
 LIBRARIES art_encoder_driver
 CATKIN_DEPENDS
 rospy
 std_msgs
 serial
 geometry_msgs
 tf
)

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)



add_executable(imu_encoder_mix_node
src/imu_encoder_mix.cpp)
add_dependencies(imu_encoder_mix_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(imu_encoder_mix_node
  ${catkin_LIBRARIES}
)

add_executable(imu_encoder_mix_node_TF
src/imu_encoder_mix_TF.cpp)
add_dependencies(imu_encoder_mix_node_TF ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(imu_encoder_mix_node_TF
    ${catkin_LIBRARIES}
)



SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")


